import React from 'react'
import Qcevents from "../utils/events"
// 函数组件没有this
function Appdau(props) {
  // 函数组件接收父组件得参数都接收到了父组件得形参里
//   console.log(props)
  const sendson = ()=>{
    Qcevents.emit("zhao","我是dau组件的数据")
  }
  return (
    <div>
        {props.send}
    
        <button onClick={sendson}>点我我给兄弟组件发送数据</button>
    </div>
  )
}

export default Appdau